package com.example.tests;

import java.util.Set;

import org.testng.annotations.Test;

import com.example.fw.GroupObject;

public class GroupRemovalTests extends TestBase {
	
	@Test
	public void testFirstGroupCanBeRemoved() throws Exception {	
		int i = 1;
		Set<GroupObject> oldList = app.getGroupHelper().getGroups();
		GroupObject group = app.getGroupHelper().getGroupWithNumber(i);
		app.getGroupHelper().deleteGroup(i);
		Set<GroupObject> newList = app.getGroupHelper().getGroups();
		verifyGroupDeleted(oldList, group, newList);
	}
	
}